﻿using PLCS.Application.Contracts.PLCReadDataApp.Dtos;
using PLCS.Domain.PLCConfigs;
using PLCS.Domain.Shared.PLCConfigs;
using System.ComponentModel;

namespace PLCS.Application.Contracts.PLCConfigApp.Dtos;

public class PLCConfigDto : EntityDto<Guid>
{
    /// <summary>
    /// PLC编号
    /// </summary>
    ///
    public string PLCNo { get; set; }

    /// <summary>
    /// Desc:名称
    /// Default:
    /// </summary>
    public string PLCName { get; set; }

    /// <summary>
    /// Desc:地址
    /// Default:
    /// </summary>
    public string IPAddress { get; set; }

    /// <summary>
    /// Desc:机架号
    /// Default:
    /// </summary>
    public int Rack { get; set; }

    /// <summary>
    /// Desc:槽号
    /// Default:
    /// </summary>
    public int Slot { get; set; }

    /// <summary>
    /// Desc:DB地址
    /// Default:
    /// </summary>
    public int DBNumber { get; set; }

    /// <summary>
    /// Desc:长度
    /// Default:
    /// </summary>
    public int Length { get; set; }

    /// <summary>
    /// Desc:类型
    /// Default:
    /// </summary>
    public PLCType Type { get; set; }

    public PlcConnectStatus PlcConnectStatus { get; set; }

    public YesNo IsUse { get; set; }

    public IEnumerable<PLCReadDataDto> PLCReadDatas { get; set; }
}